<#include "/common/_layout.html"/>
<@layout/>
<script type="text/javascript" src="${ctx}/static/js/blog.js"></script>
</head>
<body class="easyui-layout">
<table id="dg" title="博客列表" data-options="toolbar:'#toolbar'">
	<thead>
		<tr>
			<th data-options="field:'id',hidden:true">id</th>
			<th data-options="field:'ck',checkbox:true"></th>
			<th align="center" width="30%" data-options="field:'title'">博客标题</th>
			<th align="center" width="60%" data-options="field:'content'">博客内容</th>
			<th data-options="field:'userId',hidden:true">userId</th>
			<th align="center" width="10%" data-options="field:'name'">博客作者</th>
		</tr>
	</thead>
</table>

<div id="toolbar" style="padding:5px;height:auto;">
    <div style="display:inline;margin-left:5px;">
	  <a class="easyui-linkbutton"  id="add" data-options="iconCls:'icon-add',plain:true">添加</a><span class="toolbar-item dialog-tool-separator"></span>
	  <a class="easyui-linkbutton" id="del" data-options="iconCls:'icon-remove',plain:true">删除</a><span class="toolbar-item dialog-tool-separator"></span>
	  <a class="easyui-linkbutton" id="edit" data-options="iconCls:'icon-edit',plain:true">修改</a>
	</div>
</div>

<div id="addDialog" class="easyui-dialog" data-options="closed:true,modal:true,maximizable:true" style="width:400px;height:300px;">
<#include "add.html"/>
</div>

</body>
</html>